Minor changes and some documentation.