Added checkSpreadSheetHeaders, made code more clean, added more comments,