Update with changes from Roland's repository. Also slightly more logical orginization in HAL and pins.