added functions for editor and finished input handler
completed homework, should probably fix find_and_replace so strings with spaces can be used as a target