Added documentation

Added SPHINX documentation. Only the API is documented.