added more initialize methods
added more initialize methods
changed segment to a property
added insert_slot, set_segment and physical_num
added add_master_slot method
cleaned up test