fixed pep8 issues, 1 p = P bug, and 1 hard-coded num_eigen bug