Fix for toJSONString method, in some cases created JSON was wrong.
Added 'removeAllFeatures' method.