Fix custom hook output and return values
Merge pull request #197 from dblessing/fix/custom_hook_output

Fix custom hook output