added magic file header checking for input file
added magic file header checking for input file

FEPanalysis/alchemical-analysis-OLD,MobleyLab/alchemical-analysis,wesbarnett/alchemical-analysis,halx/alchemical-analysis