made some comments and fixed a bug