Updated .gitignore to ignore temp text files and cleaned up some logic in lib.playerlib.