Corrected parsing error and other minor edits