reform of copyUntilFilled() with new parameters complete. builds and passes unit test.