Added more detailed comments explaining code and uniform formatting of comments