installation fixes

fixed typos in clean script; fixed bug in atm. table generation that
wrote extra output and caused a test failure.