Bug fixes and calibrated pixel to mm and pivot