Added support for multiple headstages with eCube
Fixed a bug in conditional operators to compile eCube support
Added exception handling code to allow for errors during source creation