worked on kwic
added test
improved tests and refactored
added input shift operator for lines