some minor changes with formatting and documentation