write accuracy, percent error to accuracy.txt