remove unnecessary files and add their to ignore list