added logging, analyze decorator to debug dictionaries