fixed some errors with the library example files