edits to documentation, code refacoring