removed unused code
new tests and examples