Added ability to generate nested classes.