API polishing and documentation fixes.