Debug

Created Debug Static Class. Changed error-handling behavior.