added process hook to train data

made the train_NN object into a service which will launch a seperate
process to train the data. The data is located in a folder of the
structure

/TrainingSet
/day
    /closed
    /opened
    /unclassified
/night
    /closed
    /opened
    /unclassified

Fixed up comments in other files.