First caas code
Fixed bugs in the Caas branch. Now works basically - until it hangs :)
Futher tests with Caas. Still deadlocks on bigger files