Rewrote header functions as inline, add toString to all objects

What happened here? Replace tabs with spaces?