Flip legend order; fix bugs described in #97
Merge pull request #106 from andylolz/gh-pages

Flip legend order; fix bugs described in #97