Updated readme
Split main() from generator methods