adding format method, better http response handling, and readme fix