Created stylesheet, changed all rendering to use functions.