Add SMD inline header diagram, add M40s (unchecked) to the script and tweak generality based on this