some random test code
temp table added, algorithm using interpolation, getting rid of floats and divisions, split up code to modules