added list of foreground processes and users to output table
basically rewrote the whole thing to be much more clean
table might very well be usable cross-proect