debugged bugs that David found out. However, there is a few more

bugs: when we change a new year, days in GidLayout messes up.
I think we should move forward. We have  to finish other classes first,
then we can come back to fix bugs.