Fixed MDF2 calculation, updated formatting of plotting in other functions.