Rearranged phase 1 to include a checkout master

When using Jenkins the git repo is checked out as a detached HEAD.
Added a task to remedy this.