new build, research, and upgrade methods

optimized build method and included ability to build add-ons
Merge remote-tracking branch 'upstream/master'
Merge pull request #2 from d0u0d0e/master

generic build/research/upgrade methods