Adds ability to get the currently used terms and searchtext and improves directory printing