Calendar: updated get and set functions.
updated templates.
Calendar: updated templates.
reformatted code