Added isvalid file, updated makefile