Fixed running conditional variables

Improved loading of NeuroML based LEMS models
Adding support for more functions
Adding initial test for parser
Update to v0.3.1
Lots more debug info if debug flag set to True in individual classes...