small fixes, and documentation written