mnnist DNN example finished; several bug fixes