Improve hash plugin

Use exceptions for errors and add formatting to help message.