fixed bug
added option to update model (input neurons) and train
made model (preprocessing) optional for viewing data
moved training main into own function to make calling it possible