support for metadata in recent versions of the FPGA code moved constants and structs out to separate header file got rid of all device instance-specific globals