some fixes and documentation