add a '\0' to the end of to http response packet to treat it as string
clean debug log
add verbose items to debug log
clean code