Cleanup

Small cleanups. Created internal function _printSequence