Switched to using command line arguments (via GetoptLong) instead of calling different similar functions.
Removed unnecessary functions
Merge branch 'master' of github.com:ckpwong/papergen