Add missing file close
Added savematlab(), increased number of digits in ingredients lists