Fixed ps parsing for nice and state

Nice is an signed char, now parsed as int and truncated.
State may be longer than 3 chars.
Changed globals to use a struct
Added -b to only show basenames