Added a state diagram
Update diagram
Merge pull request #12 from matelakat/add-documentation

Add documentation