Added option to draw lines in legend.
Fixed positioning bugs.
updated documentation