Fixed style sheet manipulation and added the ability to create new style sheets