refactored analysis separate from architecture data structure
added analysis in gui