Multiple changes to package structure, added new msgStruct class, and support for JSON