T_to_J doc & accept options structure input
doc
format_scat doc and IMPORTANT: p is now first index, n second