fixed temp and output files, changed cmd line, added usage