Changed css parsing from using a regex to explicit searching back and
forth.  Also some display buffer tweaks.