First draft of initialize script

Needs to be updated so it can run repeatedly.