checked pep8 conformity and made doc nicer.