Fix brew upgrade script.
Added Makefile. Cleaned up scripts.