modified makefile and create make/free functions for argument handler