add composer.json
propper error checking in fromHtml and fromXml

Days of being wild are over.