Fixed bugs and cleaned code

Template creation is a bit more robust
No longer errors if player data is omitted