Removed some redundant code and added docstrings.
Removed some redundant code and added docstrings.

wbg-optronix-lab/emergence-lab,wbg-optronix-lab/emergence-lab,emergence-lab/emergence-lab,wbg-optronix-lab/emergence-lab,emergence-lab/emergence-lab,emergence-lab/emergence-lab