Update how to add custom Type

New in sf2.3, update the way we have to use to add custom Type.
fix indent & coma
[#2725] Fixing whitespace