Return with error count as exit status

Use the number of errors from the results variable as the exit status of the program. Closes #14.