Minor bugfixes
tweaks to example
Renamed test to example