lots of refactoring
updated readme
split examples and put them in the right package