Fix bug related to and improve handling of sidebar monthly archive
listings.
Improvements to functions and better commenting in functions.php.