updated index with twitter code and minor changes