closes issue #13 and issue #15

I had to change your createTraining() and submitData() methods a little bit. Otherwise even if the input was incorrect (for example no input at all) the request to the server still would have been made.