continued work on main loop, split the classes in sub-files, numpy, first plot and analysis modules