Updated .gitignore to ignore intermediate and final files.