update to makefile
update requirements
add methods to parse json and flock, unflock a file