Fix typo in pointer; add state field

Closes #11