removed debugging infos
fixed parameter passing bug
added examples
clean up