Updated examples and tweaked the library