Reorganize sources and add grpahs bases.