Added support for inheritence and interfaces to the class generator