is_safe function
cleanup
Merge pull request #29 from darxxik/master

is_safe, cleanup