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