Added config hook and updated documentation