updated documentation.  formatted code.