Wrapped the calculations into nicer interface

The calculations can now be accessed by forming together input data
based on simple characteristics and outputs can be accessed through a
convenient object.