Fixed shadow buffering
Various minor improvements
Fixed .gitignore to ignore .txt files