Added comments to test code, changed all port definitions to #defines