Optimizations & documentation fixes.