tidied up ruby files