Added build directory to .gitignore
Added makeshift buffer flushing to input