Error handling for column headers & bug fixes