Added Makefile, split long list formatting into a seperate function