added some documentation and a few modifications to the player input
handler