+ added argv option to accept parameters

+ added timer class to measure times (please test on unix!)
+ many minor fixes, refactorings