adding code documentation and sphinx configuration for readthedocs