fixed form errors display and some redirection problems, and add comments to all functions and some description of process