various fixes, updated docs