added platform and device info output (mode 5).