changed logic of logf & slogf

* logf became multirow
* recompile libs