moved CM_PER_IN to math.h
cleaned up math.c

removed redundant macro definition
removed old comments that no longer apply
made simplemovement.c use the step function
updated api.c with the new files