removed unnecessary code
fixed html generation problem on readthedocs
doc changes
flake8 fixes