added automatic gradiants, minor stylistic tweaks