Config writing/reading, compression

- Added writing of configuration file
- Added some simple checks to see if source data is valid for LZW