file output almost working. some user error checking completed