Added more const qualifiers where applicable. I don't know if these will cause issues. I'll have to see when the library is being used.