finalizing preprocess & debugging neural network classifier