Added docstrings, fixed some of the empty form submission bugs