New version of the plugin v1.01

Major improvements in the algorithms.
Bugs fixed.