Set correct AddAsmType page header, fixes in addPlannedAsm

Removed dead code and stuff