Added documentation, minor changes.