Complete refactoring of the pipeline

To test run the command:
  pipeline.py <path_name_of_data>