Made changes to allow auto-generation of main.
Made a template file for main.cpp
Added main template to resources.
Added new resource file for main template
Merge pull request #15 from mirror3000/master

main.cpp now fully generated