added functionality to specify the target table
Fixed a bug that came up when the target was aligned to something other than a chromosome