added scan for palindromic sequences
removed superflous printfs