renamed to main.hs, added test.bat
fixed low level parsers