Minimal fixes. Added documentation