Updated localStorage module. Minor changes