cleaned up, commented, and removed stuff.