various little fixes, improvements, documentation