fixed errors and format code

can now delete tweets and messages
also formatted code to look better

still fixing some code to more efficiently update studd