Refactored Makefile.
Updated ignore file.