 # Returns tweets to client
 `getTweets = function() {return tweets;}`
 
-
-
+# Track the tracking words
 stream = Twitter.stream 'statuses/filter', {track:process.env.track}
 
 id = 0

stream.on 'tweet', (tweet) ->
  if tweet.coordinates
    tweets.push {text: "@" + tweet.user.screen_name + " : " + tweet.text, coordinates: tweet.coordinates.coordinates, id:id++}
    retweet tweet.user.screen_name, tweet.id_str, tweet.user.followers_count
  else if tweet.place
    if tweet.place.bounding_box
      if tweet.place.bounding_box.type is 'Polygon'
        centerPoint tweet.place.bounding_box.coordinates[0], (center) ->
          tweets.push {text: "@" + tweet.user.screen_name + " : " + tweet.text, coordinates: center, id:id++}
          retweet tweet.user.screen_name, tweet.id_str, tweet.user.followers_count
      else
        console.log 'WTF_Place: ' + util.inspect tweet.place
    else


# Temporary storage of tweets
tweets = []

# Clears cache of tweets every 5 seconds
eraseTweets = -> tweets = []
