Logging improvments, use of appdata module, fixed list command.