Fix SetupPhantomJS routine, Refactoring, Adding PHPDoc Blocks