Add changes to make docs compile on readthedocs

At least in my account the docs compile after the changes in this PR

Closes #142