replaced some modulus with a conditional assignment to zero
remoevd windows related stuff from makefile