strict standards fixes
cleaning up task module for strict standards etc.