Added documentation.
Added documentation, updated code base.