Clean up Ruby style. Fix capitalisation.