Remove some debugging code, add extra type of error example