took out comments and cleaned code to make readable.