writing to file fixed
added fixed samples at gentrain