Started on wrapper for syndrome calculation.

It doesn't quite work yet.