change: code improvement and lua 5.2 support has been added.