fix relative path and add .gitignore in Max's code