fix syntax errors
add Identifier, IfStatement, and LabeledStatement support
fix references to Nothing/Just in foreign functions
add missing second operand of [].map.call in some places in readP
add first test and fix doc generation