Added debug utilities, exceptions and Vector class