End of night commit added (broken) functions to search buffer forwards for content and back for new lines