Rewrote the Library Demo and fixed readability.