Added compatibility with 1.4.x. Hooks are alphabetically sorted now. Removed some useless print_r and some comment typos fixed.