Formatting and warnings tidy up
Merge remote-tracking branch 'origin/master'