Fix ruby wrapper and add some features