Commenting done. TODO: testing, check for nullptr in form code.