implemented all methods for localStorage

still some todo notes to fix