included edge residual, commented wrapper function, and added an error estimate
trying to commit changes to residual.m
debug
Merge pull request #2 from mcgregod/master

Edge residuals + Duncan's debugging.