Cleaned code a bit, added ethernet and ip4 objects.