cleaned up and commented for submission
changed tabs to spaces (contd)
Refactored 'robot.py' to pkmanager.py. I think this makes it more clear what it does, but I'm not sure it hasn't introduced bugs. Also toyed with threading and gui