Fixed minor doc errors and did a little PEP8 cleanup