added some 'var' keywords. parsed document and noteIterator were global for debugging reasons. also strings look nicer now as of last commit (no more new String() anymore)