commented code
use path of page as filename
fix typos