More movement code and updated debugging

Has updated code for changing direction of directSlide() method. Has
code for counting pattern repeats. Has code for saving frames for
publishing