popup direction argument changed to <left-right> since v0.4.1

Also, '.g' class attribute no longer used.
Merge pull request #1 from ryannorton/master

popup direction argument changed to <left-right> since v0.4.1