added arc segment output

I added a few comments and the ability to output arc segment or height of area by specifying in the input.