adding command line input, test set error calc at end