Added documentation (formatted for sphinx)