Rewrote header functions as inline, add toString to all objects

This function doesn't really have to be `inline`, but this will be ok.