Factored Fiducials.[ch] out from Demo.c