added error handling to trgfast.m