add ability to work on ruby 2.0.0 and index to elasticsearch
remove swap file