Minor fixes.
Added documentation.