Added .gitignore and some timing fixes.