fixed some compiler warnings

Hi Darshit,

I just fixed the warnings that I stumbled upon (mainly unused params but also some others).
It is far too much work to check against your issues - but I guess each change I made should fix one of them...

Tim