fixed overflow in PCM when saving
add saveLibrary to createLibrary, when created, now exists on disk