Refactoring

Fix dimensions of primary boundary box. Create tiers for alarm sound
based on length of alarm sounding. Refactor code so alarm setting is
not duplicated.