Finsihed server side documentation and refactored a bit of code in player.js