THE STEP FLASHING SHOULD BE BACKED UP BY FELT OR ICE +WATER SHIELD TURNED UP THE WALL,run the steps w/each shingle course to the ridge,from the ridge ,cut the excess at the angle and bend down on other side, come up the other side the same way,when you reach the ridge cut and bend the step the same way,remove it and install sealant at juncture,set step into sealant,then put flat piece of step on wall w/triangle for roof lines cut out,seal to wall w/silicone sealant,take 1 cap shingle;cut away the exposure leaving tar line at the bottom,set w/tar strip side flush to wall,then install 2-3 caps going away from wall before ridge vent etc.-typically you would cap facing away from walls,or from less windy side into high wind area-sorry no pics of this