Cleaned up parser.nim, added tests.nim to hold tests for parser