Addd clear operation and some more checkstyle
Smaller text changes
Added weakly consistency unittests