Made main.js parse file given from command-line.

Added another Cool samples from the cs143 dir - parses successfully.