Added library.cpp (experimental library support)