Added a valid flag per bunch crossing as per #26.
Fixed some bugs for #26.
Fixed bug in buffer for valid bits for #26.
Merge branch 'master' into global_valid_flag
Merge branch 'master' into global_valid_flag
Modified how valid bit is checked for #26.
Fixed calculation of valid bit and adjusted delay as per @jlingema for #26.