Close region files after use.
Replace build.sh with Makefile.
.gitignore some things.