Added C++11 thread sleep to fix crashing issues and created gitignore directory