The main two purposes of the sedimentation process are