refactor: move bootstrap out of main code.
refactor: modify comments.
remove unused property.
Merge pull request #534 from forumbyr/master

refactor.