Finished adding nog/bit structure; sorted out switches; Fixed data races. Closes #26; closes #36; closes #37; closes #35.