Added automatic twitter rest API file writing