Refactor project

Updated initialization code and related script to have the whole thing able to run. This resolves #1.