added DOS output functionality, tweaks to other formatting