update .gitigore to ignore swap files, add partial support