Scanner speed parameter calibrated, error handling, bugfixes