improvements and further development of ex3
Merge branch 'master' of https://github.com/seitza/tdcv13
changes