Added a request class and repaired bitfield and request handling