Most of the things seem to be working. Whatever case we fail in I blame it on MATLAB