An analitical Model to Study the Performance of an Anaerobic Digester