small fixes and documentation