Refactored PRINT, added comments. Updated Makefile.