3D code improvement and add drugport preprocessing module