Fixed build errors caused by using damned templates
Changed main to be a good testing program