added getter & setters for header and content, added toJSON method