Fixes against "None"-objects.
Rewrited writeHTML function(not completed), rewrited extractLinks function with bs4 module.