Refactored Makefile, and added comments.