copy across previous chapter files, create main module, and base environment