organized and added more comments