- use css classes for point labels on dark or bright background instead of inline style when darkColor/brightColor is not specified in config
- replaced '0px' with '0'
- removed some unused vars
- moved some variable initalization to top of scope