functionalized program and added info function which displays the info about the audio file