minor fixes and documentation added