lots....

Fixed error showing wrong dates, fixed bad math, fixed parse structure,
fixed all functions...ETC