Minor fixes
Allow commands to be passed instead of process IDs. Fixes #1.