Basic main for testing
Improved makefile to use implicit rules