explore serialisation fix, cython profile model, fix some docstrings