Fix for data[target] having nil

Compacting data[target] - if data[target] has nil, we get a "ArgumentError: comparison of Float with nil failed"
Merge pull request #44 from prashanthrajagopal/master

Fix for data[target] having nil