refactored file parsers. Stabilized power iteration