cleaned up code a bit. need to figure out method to interrupt on zero cross without losing the remaining time on the pause commands