Fixed a bug in reader. Added some details to the level format and tested writing a simple file manually. It works!