Changing from a plugin to an API

Just a simple editing of how the plugin works so we can have more control over what we can do.