Added API documentation. Close #2
Added API documentation. Close #2