Removed Debug Alerts

Removed some alerts used for debugging and tidied up the code a little.