update documentation. formatting fixes. very minor refactoring.