Made some corrections to comments and removed debug output