added new method for training/test file generation; altered error testing method in bayesRegress.py