tuned

* In and Out files as parameter
* Understand multi references