Testing neural training

Everything in the main function just for test and get to know encode
library