debug messsages partially removed, gem depencies updated. tested with ruby 2.0.0p0