Finish main() to generate the interface file
Make it easier to modify / subclass generated templates