Add ifdefs around to_string methods and the id variable in State because giving an id to every state wastes memory
Remove comment
Remove newlines
Add TODO
Refactor code