install ruby and few style changes