Rename thread variable to child.
Renamed context variables.
Added stub context files.
Context allocation.