Fixed main script

- Should now be able to process command line args properly.