Add .gitignore, fix bug. Kernel now compiles