Begin code for multiple cubes.
Rearrange which functions go in which files.
Remove the emacs temporary files.