fixed do_action and apply_hooks bugs when no function hook exists, fixed typo in readme example code