Merge pull request #2 from PedersenThomas/master

Introduction packet transformer and some refactoring