<p>A method of producing a biofuel from biomass is provided. In one embodiment, the biofuel production process is an ethanol production process. Various embodiments of the invention include features such as application of a shock wave to biomass, variations in composition of biomass feedstock, continuous fermentation, and anaerobic digestion of stillage to produce a methane based fuel.</p>