add API reference, still to be documented