Greatly increased code quality of Player module through refactorings. Also added documentation.