Fixed binary data writing
Removed old files