added ability to recognize parser from file extension
added home/end/pageup/pagedown to the keydownMap
some minor fixes and improvements