I forgot to mention: I can't find any documentation except for this one:
Reading Messages from PI System
Unfortunately, it's little documentation, doesn't cover everything, and also doesn't show an API with all the functions and input/input-formats