Organizing documents code throughout levels