Added option to show popover
Removed some error cases
Merge pull request #2 from xelhark/master

More options and bug fixes.