Revamped the lib a lot; moved stuff into different files, changed the API quite a bit.