split some cleanse data function into a separate file, added a feature s...

...election module