Update & Bugfix

1) new Subroutine logMessage
2) Bugfix on internal subroutine inputText (if statements were not correct)