Small number of bugfixes and documentation.