adding comments, and fixing some formatting issues with Tab chars