throw error if MainTool does not have tool

Issue #64
Merge pull request #65 from metridoc/non-existant-tool-error

throw error if MainTool does not have tool