move error-checking version to subdir, re-add original main.c

and print errors on open
mention subdirectory
add copy of Makefile for main dir