added form labels
added a few docstrings