Create a library and add it to the netlist and return that library
name - (str) the name of the library
properties - (dict) the dictionary which holds the properties of the library