Structure, defects and properties of metallic glasses