added makefile and replaced things with talloc