ENH: Add load function to main API. Closes #840.