Fix hardware detection and add setting of physical type

Physical Hardware detection is broken, due to accidental multiple-line spacing in a line wrapping text editor (most likely). 

It also didn't record the type as physical. This has been fixed.