Fix lint complaints and add manual localStorage clearing option