refactored a lot of the parsing stuff; in addition, fixed all the jslint errors
test with commented ASCII PBM
handle comments