added a default handler for node painting; paint things red if they haven't been visited; cleaned up drawLinedBox