Reorganized report layout template. Fixed pluralization if there's only one device in the profile. Rearranged platform detection logic.