minor bug fixes

added top and bottom points to <points>, fixed some math errors, updated
return value, changed lists back to value types.