Deleted some debug files, added check for complex validity.
Added matlab example and interface.Added matlab example and
interface.Added matlab example and interface.