Minor code tweaks

Add alarm test, and button press counter (will be used later for
Emergency Stop)