Minor changes

added errors to error map, debug output, fixed compiler errors