Fixed non-working maven dependencies
Fixed complaints about unitialized local variable
Removed warning-generating lines
Bugs in tests fixed
Fixed concurrency issue