Added clear local storage function.

Added in the function to clear the local storage.