added retraction

need to update mecode with change_nozzle function in order to test.