Import of the schemaball project of Cyril.
Started to wrap the schemaball function following psom guidelines