Command line args, clean-up

The input and output is sent to files as the arguments to the script
80 char limit generally imposed
Added main() function