fixed bug with gates staying open
fixed alarm sound breaking closes #49