Added minor functions

Added minor functions that help make verifying certain mathematical properties of the data easier.