Added form validation and comment normalization.
Some minor improvements and bug fixing (comment doubling in some cases).