added explanation and formated tables