added a function to useful tools
added script to make lua "classes" templates (and example)