fix bug

reader always returned even if it was supposed to continue.
fix usage test and rename functions to usageFunctions