Most of PHPDocs fixed; some of the inconsistent returns fixed; several bug typos fixed.