ENH: Minor bugs in source and typos in docs

Three minor bugs in source found by pylint and typos in documentation were corrected.