Cleaned it a bit

Added comments for some parts, took out a debug print I threw in.