compile script
DIIS added (needs to be debugged)