Pruned old reference code

Fixes #63