ftsp: linear regression table fixed plus refactoring
gtsp: calibration_offset changed; small refactor; documentation