Fixed Syntax and Other errors

Next commit will be outputing values correctly. See
http://ideafablabs.com/patch/patch-converter.php
Alpha Commit

Script outputs valid JSON. Rejoice!