fix warnings in test.c
fix free in link_remove(). Closes #3
refactor
add package.json