Added optional build target to bindings/beam01.C, tidied up some things in the beam01 code.