added initial api docs (refs #3)