Fix errors and some warnings
add request library