Fix bug with end-of-month situation
A bit of documentation
A bit more comments