Removed main-tgp and added that functionality to main
Improved the command line functionality
Fixed a bug for files that don't end with newline