Upnp discover hardware resource added

added upnp discovery and fixed some documentation bugs. please review my code :)
hmmm... odd.. this part of the diff is from another pull request... I guess those changes shouldn't be in here. Lets see what happens with merging :D