Added option to specify output format, put flat output in its own function, fixed a bug with flat output and alignments.
Added option to specify output format, put flat output in its own function, fixed a bug with flat output and alignments.

Meisaka/WaveAsm,Zardoz89/WaveAsm,8l/WaveAsm