updates to sample code
Merge branch 'master' of https://github.com/fjos/fyp