added complex test for presentation
some small fixes and clean up
added latex produced files