Readded support for ender.

A commit in the start of August removed the ender-compatibility added by issue #8. This restores it and adds a designated ender hook.