changes  cleaning and analyse module

clean up of code for cleaning and analyse module and related code in
other modules, test_all.py was modified to run all modules - not
finished