(docs): more detailed control flow and basics documentation