Added comments; reformatted; added optiondate

Added comments and reformatted code slightly.
Also added optiondate to match Main.lsl; eventually optiondate
could be passed back and forth.