Removed unused section and renamed variables

Changed getchi1010. Removd unused parameter and sections(invariance) and
renamed "files" variables