added gitignore and comment for writeTrace