added response parsing,negative int support and unit tests