cleaned up various formatting, added sorting of paginated values, and started work on searching functions