Default callback function in a library

Changes made and it still works !

Unless anyone is really interested I won't post the revised code but if anyone would like to see it I will gladly post it.