Reorganized variable declaration

Added additional comments and documentation
Changes to data structure html generator

Domain now used for calendar icon.
Colon added to the end of form labels.