added checks to optical_find

the script is now checking whether the source catalogue has the right
format and input