Moved internal functions in lencat
Major changes to psdCalc and psdPlot