minor fixes/optimizations, documentation