Initial commit, copied code over from bitbucket repo