Issue #3: modified build.rb extensively