Removed puts statments and corrected max_demand precision