Moved some code into the if statement so it doesn't apply in sandbox mode (Fixes #78)
Added action code to Quick Earth Alarm (Fixes #77)
Sorted actioning so it happens whether GUI is displayed or not (Fixes #76)
Miscellaneous code cleanup