Fixed minor issue with upnp where 'err' wasn't checked resulting in crash
Moved and improved sample coin