Remove "if"s and pointers.
Documentation fixes.