adding check problem type + little refactoring
Merge branch 'master' of https://github.com/ITsvetkoFF/KV005