Add methods to selftype
Add a print formatting function