added Makefile and switch to the crc main func