adding HTTP status checking. Also adding string library