major changes

adds types (only date supported) and cleans up CSS and moves it to a
loaded CSS file.