added mel.txt and outputCenter function