More refactoring of code

There is now a test module that has functions for the generation
of test images.
Source detection has been moved into a source_detection module
Test_Pipeline.ipynb is now the file that demonstrates how it works.

Refactoring of the improved clustered sampler is still WIP.
There is also a problem with convergence.