Lots of bugs fixed, almost stable

Shachar please review misc/tasks