MAXIMUM codes

removed magic numbers and added limits to myTheta and myPhi