minor bugfixes, CRAN fixes, more documentation