Moved core files into external library.