save
added simplistic makefile

removed forking and used threads instead

3 threads, input, graph and capture

threads do not access variables safely yet, but for the time being, I will keep it the most imple way