documentation and minor changes