finished finessing classes' dict methods so all attributes can be written to json, added json write method