added global CSS support; finished part 3
added file ids; cleaned up a bunch of stuff