main function finished up
forgot diis file