Fixed some ruby style issues