Updated a few files, added a basic api reference.