1.Added more comments 2. Did some cleanups