added struct for players and more documentation + and example on how to use the code