Add ReST documentation under doc/

Add documentation in doc directory in ReST format
Add docstrings and corresponding configuration for sphinx