Added layer name generation

Updated sample too to add UIButton in examples