minor fixes and documenation change