Solved running problems with auto-encoders, and cross-entropy numeric stabilty due to division by 0