Rewrote header functions as inline, add toString to all objects

I don't have a strong opinion. What is your opinion?