Formatting changes. Added documentation.