Remove npm-debug.log and update gitignore to ignore it"
Added clean up after thunking to avoid conflicts