Reworked API. Cleaned up, simplified, and added various functions.