Bugfix

Misslabeled name in console interface and close files properly