fixes to smfret.py. It works now, but the trick is going to be to fit the model.