fixed setVersion clear localStorage, added docs