Fixed state parser, added some more styling to example docs and modified the mustache template