state diagrams - finished

also added whole documentation template