added hook system for extensions, update README