Recent development.

Register custom types.
Add hooks.
Some little improvements.