This project implements functions to calculate MFCC with detailed comments.
http://practicalcryptography.com/miscellaneous/machine-learning/guide-mel-frequency-cepstral-coefficients-mfccs/