Added custom add shadow to the ruby gem. A couple of small other fixes as well.