Refactored YearMonth methods, added documentation