added #java hashtag if possible, changed conditions necessary before tweets get sent