cleaned up comments and code on index