minor fixes and documentation