general cleanup, new way of loading templates in the generator internally, and added ability to pass model path to collection