Many bug fixes.
Reactivated some features.