Added documentation on the mid-level API