Fixed minor printing bugs + added automatic sequence ending.