small bugfixing and a couple of utility functions

I fixed an issue on handling nesting of different quotes and added the support for the pipe characters inside the parameters (internal separator is now a double pipe)