added makefile

also added a free statement.