Improvement of anaerobic digestion process to reduce ammonia production