* Trying to fix tariff on wrong date. Also some code cleanup * Fix issue for ex DLMS where accumulated is always included * Stricter time restrictions when updating history * Adjustments after testing