updated subsequent run handling

added changes to detect if setup had previously been completed
successfully.
.gitignore changes