Added documentation. Minor fixes