fydp.py now runs for a finite amount of time and builds the En matrix for CSP. Cleaned up some code.