refactored code to allow for testing without connecting to twitter
Added proto code