Implement general setup & i/o mod. fns
Add Makefile to ease compilation