Moved source files into src directory
Add UNUSED for compiler warnings
Remove unused function
Better error messages
Added some debugging messages to see what it's doing.
Added varargs support
Remove extraneous free
Finalize variable arguments