Updated waitForKeyElements implementation
Added gitignore