removed some junk and added comments to the mainloop that anyone wanting to understand the project should read before woundering what the robot is up to