cleaned up the code

added comments, deletet unnessesary files.