added curl-config to makefile
finished drafts of functions, untested