added docstrings for sphynx
added sphynx based docs