Code cleanup, added Z probing data export and global config file