added the colored exceptions and bug fixes