Added a Makefile, improved MIME check.