Improved the sanitazation and splitting algorithm (not finished)
Finished the sanitazation and splitting algorithm