Rewrote header functions as inline, add toString to all objects

Do you want me to correct this ?