changed fields in tcpsegment to private; added setters/getters