Remove unnecassary Serializor and made changes to how ProfileLibrary
handles profilers.
Made changes to how ProfileLibrary interacts with other dependant
libraries.
Removed unused import.