Comments added, error normalization