Better error handling on empty files, general cleanup, facs default error rate on build, fixed @arvestad compiler warning