now working tsearch. also fixed issue with stray newline chars (using magic numbers...)