Added grcode to generate grid binary data and some more scaffolding for detection code