Fixed error in syntax.txt.
Added Compact and readable options for JSON output.
Added extra checks to parser to prevent outright crashing.
Added Readme.