fixed some 80 char widht; fixed hook function exit code;