strong issue fixed

The global variables was increasing at each import, which was not a very
desirable behavior.
typo
drop useless functions