Rewrote header functions as inline, add toString to all objects

Doesn't really have to be inline.