[cvz] Jordi please take a look

I corrected many things in your module. Hopefully now it should work
more or less as you intended. Be sure to use also the updated
configuration file. Ideally your algorithm should be independent of the
modalities used, they are user choice. Good luck ! :)