splitting lua library generator to have a class generator