Added user-defined functions to lcpsd and simulation
Modified docstrings