Fixed IR/asm output. Fixed newline issue

This fixed all known issues.