replaced get_doc_content() by wp_remote_get()

and lots of other fixes (regex, etc)