added code for writing to file in local storage, and added methods for converting report to and from byte array