Adapt code in order to remove Ruby warnings.
Merge pull request #61 from tbuehlmann/remove_ruby_warnings

Remove Ruby warnings