Re-added documentation on calendar.js, left out refactoring. This needs to be addressed later. re #95