1/import source code

#1 @simonbrennan @ahill-ersa could you pass a weary eye over this please?