Updates to pack/unpack of library classes.
Merge pull request #89 from espeo196/master

Updates to pack/unpack methods.