Bed calibration and filament change G-code programs