Updated docs and added some more comments.  Modularized simulateKeyEvent
Updated docs and minfied version