introduce mostly correct file creation; encode data in right order