added documentation and tests for year/month