added file output along with cleaned up spacing in program creator