changed command line args processing to use better --name value pairs. added code to calculate accuracy on test data. replaced tabs with 4 spaces