some tidying

Added listener abstract class to library

added lambda listener example