Fixed some bugs and binaries for training moved into the ./bin directory