Changed how records and packets are created.

* supports ref names
version bump to 0.1.0