author added, code formatted and https error resolved