minor edits and documentation