Added a length field to ethernet frames and fixed a few bugs.