Use Writer for log ouput
Fix search within lines steps and add a self test