A bit of cleaning up by putting chunks of code into functions. Now keep track of last tweet made so that we don't try and tweet the same revision. Made the app an infinite loop with sleep time in between loops.