Fixes problems with unpacking Structs
Initial work on the server library