Main method now generated(needs code to init everything)