Add debug mode and release mode to Makefile

Add "core" to .gitignore for debugging