produce pdf instead of png for the representation bars
Fixed a number of bugs in the new BuildModel class