Removed type_num. Currently bugged. Also added check input to typed_list.