Added Error class that manages alerts, Lotsa commenting