Say your plugin classes are following this naming convention My_Plugin_Thing
and you name your files by the last "thing" e.g. thing.php
inside the lib
folder.
This snippet autoloads all classes within a the namespace. Handy!
Also, documentation poor. I'm tired!