Adding the ability to specify custom training set, add new samples to training data via CLI and fixing CLI encoding problem