Move method getDensity from Preprocessor to SMDataModel
Remove main method from Preprocessor
Add testing code of Preprocessor to Test class