Cut off words and end of video and clean up code