Code cleanup and added comments to all functions. Cleaned up code sniffer errors, and rewrote the title/details display functionality.