Add check for empty lines
Fix "Pagerank" typo
import numpy