Added target pid arg checks/errors (resolves #4) and refactored parts of main() out into separate functions (arg parsing and arch checking)