Fixed a couple syntax bugs, added debugging for twitter posting