Update linear-stock.pl

cleanup and add. comments