Shared preferences setup and variable alarm time