CNC programming Handbook by peter Smid is one of the bibles.
Also there is a free simulator CNCsimulator.com.
http://www.cncsimulator.com/
For mathematical algorithms etc there is Computer Numerical Control Programming by Michael Sava and Joseph Pusztai.
Al.