Major overhaul - separate configfile, datafiles in their own dir, support for multiple channels.