Moved contract to it's own .c file
Moved DEFINEs to Makefile
renamed external del and contract files