style via attributes; update examples and docs