More bug fixes
Added http.decode function