How can I get rid of residual soap suds at the end of a cycle?

This is usually an indication that you're using too much detergent for the clothes you are washing. Try reducing the amount of detergent by half. Then, if the clothes do not appear to be as clean as they should be, increase the amount slightly for each load, until the clothes do get clean.