TROIA 336, 337
arguments check
Merge pull request #71 from ipeirotis/TROIA-336,337

TROIA-336 fix in returning cost matrix TROIA-337 params checking