update data types in library.js and align values with keys (case sensitive values should written identically as their keys)