Added basic support for flash modes, fixed gitignore, and removed the build dir.