Initial commit of code and built code

No doubt this will be fairly buggy, but it works ok for what I need.