input keywords for diis added
updated main routine