added error handling, tests, file parser, input parser, multiple sentence endings.