Implemented building environment; other fixes

yeah.