Added ruby API
Updated docs