Removed several print lines and added a few lines of code to fix some minor event glitches.