fixed twitter posting, did code clean-up, and prepare for arduino