Added upper elements to int and sum.  Fixed #47