Adding a ruby script, and small tweaks