Enabled trowing error for missing ref objects.
Fixed comment code.