The API is now cleaner and includes more documentation (with an example). Some unnecessary types are removed/combined.