Rewrote header functions as inline, add toString to all objects

I'm not really sure anymore, but it might be yes.