removed min-height and made width 100% for stageOutput
Added spaces to the name of operator blocks
Added additional argument check before running codesnippet
Added logic to calculate the margin of stageOutput and also calculated the height of stage based on stageOutput.