Fixed typos, altered output, made flavor an input parameter