Cleared shebangs and encoding.
Added read/write to json file.