Added some comments and minor cleanup