Added prediction code in the estimate-sat3d program. Restructuring a bit.