added some testing to Parallel port code