fix a bunch of ruby best practises