updated makefiles
moved impl of integer functions to its .cc