More of the application working, but the final optimization / classification runs still experience some difficulties.

I don't have any energy left today to fix this, but I'll make a tentative fresh release (after I merge this with the main trunk)