Finished new_port_types.rst and fixed and rearranged lib.rst.