Complete movement of code into subroutines and into module.

Create non-OO sub new().  Store text of default stylesheet in its own sub.