add IDs as integers always
fix bug with removing files that don't exist
replace elif with else, a little more stable