Added a check to only process PRs targeting the master branch. Cleaned up a bit.