Added code for generating graphs and changed the number of epochs.