Added function to find first table containing given signal. Fixed some pointers.