Properly closed API keys file in globalVars.py
Added unit testing, fixed scoring bug.