Update the pipeline mechanism; Major refactoring of the code as well; Update pip version in gitlab-ci.yaml