Removes dead code adds comments