fixing compile errors
add package titleref
chapter bfs to review