Add exception classes
Use parseports function for digital output