Extended the code such that any pygments registered style can be used in html, sphinx and latex. Fixed some bugs.