Cleanup

Added a cleanup function for each class to return the GPIO channels
used.