minor changes and documentation