Cleaned up CCSD code more, still an issue with the code