Various updates

pep8 fixes, doc improvements, remove mpl dependencies.