Minor code and comment improvments

Removed use of get_page and global variables; added/changed names and
comments; removed dead hooks