Initial Commit
implemented didEndDocument
trying to find the reason for the crash