Uses init func to better test gogtl.main()

Avoid defining flags twice
Avoid os.Exit()