Fixed string not null-terminated
Fixed writing glitch - truncate was missing
Added license
Chmods correctly saving