Add some comments and small code cleanups
Add HTML 5 'required' attribute to mandatory input fields