Improved terminology

Replaced int state with enum Tool and selectedTool variable
Merge pull request #3 from seoha/kian

Improved terminology