Fix for issue #15
Fixed issue #16

This should hopefully fix the issue with having the wrong date as
reference to history/future dates
Fix for #17 #18

Possibility to parameterize selection of selested date
Fix error with allowSelectionofSelectedDate

allowSelectionofSelectedDate and AutoClose did not work together