Add asm-error, addAsmType: handle file removal and other improvements