Some parsing bugs fixed, basic commands implemented.

Next: build machine and implement functionality for more commands.