clean up and calling submodule
added: class and methods, threading
clean up and various improvments