fixed bugs in hazard detect and filled out forwarding unit