added MiscTools.c
psi and k added to LaserPlan
changed all references in phase1 to k and psi to lp->k and psi