Improved Makefile and added dependency fetching.