Fixed some formatting errors.
Added some missing documentation