Add some matlab code examples
updated basic loop test
Merge commit 'd85a5be2f11224d689df956ad80f8e98c91d0ffb'

pull in the samples
turned off NDEBUG; make all debug messages honour -verbose
changed / added bunch more tests