adds documentation to gamestates module