Added documentation to instructions and state modules