added a detailed "Code Flow" section