Add basic API documentation (fixes #10)