added ping fxn
import httpcode libary
updated readme