initial commit of ported code
Merge pull request #1 from tommyjohnson/feature/port_code

initial commit of ported code