Precising the exceptions thrown by the PS parser
Can add a plotted function
Tests added and minor fixes