Tidied code on display.php, and added listing functionality.