minor bugfixes and updated documentation