Small security fix
Security fix + Added quit and setRes command
Merge pull request #1 from Drakulix/master

Improvements!