Fixed calculation of valid x, y.
Update usage.
newline
Add input and output to robot, allow printing to file.
Test for writing to file.
Bit of refactor.

- error checking
- input parsing
- allow for input file and output file