added code comments, removed unused/dead code.
implemented form validation for create sequence block dialog.
fixed bug in date creation code.