Changed the xclip command to redirect stderr so we get error messages.
Cleaned up isInteger function.
Improved how options are parsed.