Refactored Input and Interface, fixed console instance log bug.
Merge pull request #44 from 7-by/master

fix null pointer for situation when call registered function from console