css normalize, clean up resources and tidy up code