Added documentation. Bugfix.