refactored parport, pulled out some tests.