Decompose files, extract globals, and make runnable