edits from Hongkai to fix fort.15 file creation and memory allocation limit error
minor working edits