Added version checking functions
Updated the Makefile