Updated functions for sequence class. Stable, but ned some small tweaks before doing a release.