Added more comments. Fixed quad form.