lua interface for ADPlib. The interface is working. But still need to optimize the code for more efficiency.