Refactored some code. Made search feature render results in a more human-readable format. Made some validation changes