Remove unused code
Read segment and data contents