Misc

Fixed lua 5.1 compatibility
Clarified source code and readme