Added documentation on States and Workflows