adding tweeting capability
refactoring the tweeting function to new file