Small tweaks to file io
Working on the main build func

Getting everything wired up, and passing up error reporting
to the main build function so it can be reported.